
;; (defvar rc/package-contents-refreshed nil)
;;
;; (defun rc/package-refresh-contents-once ()
;;   (when (not rc/package-contents-refreshed)
;;     (setq rc/package-contents-refreshed t)
;;     (package-refresh-contents)))
;;
;; (defun rc/require-one-package (package)
;;   (when (not (package-installed-p package))
;;     (rc/package-refresh-contents-once)
;;     (package-install package)))
;;
;; (defun rc/require (&rest packages)
;;   (dolist (package packages)
;;     (rc/require-one-package package)))

(defun rc/require (&rest packages)
  "Require multiple PACKAGES using `straight-use-package`."
  (dolist (pkg packages)
    (straight-use-package pkg)))

;; (defmacro rc/require (&rest packages)
;;   "Require multiple packages using `elpaca`."
;;   `(progn
;;      ,@(mapcar (lambda (pkg)
;;                  `(elpaca ,pkg))
;;                packages)))

(provide 'init-rcrequire)
